#ifndef __NCE_SERVANT_H__
#define __NCE_SERVANT_H__

#include <iostream>

#include "nce_buffer.h"
#include "nce_socket.h"

using namespace std;

namespace nce
{

class Servant
{
public:
    Servant(string servName, int port);
	~Servant();
    int start();
	int doServ();
	
protected:
	virtual int process(InputBuffer &ib, OutputBuffer &ob) = 0;
    string _servName;
	
private:
    class ServerSocket  *_server;
};

}

#endif
